package com.example.service.impl;

import com.example.domain.ZoneAnnualoutput;
import com.example.mapper.ZoneAnnualoutputMapper;
import com.example.service.ZoneAnnualoutputService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZoneAnnualoutputServiceImpl implements ZoneAnnualoutputService {

    @Autowired
    private ZoneAnnualoutputMapper zoneAnnualoutputMapper;

    @Override
    public List<ZoneAnnualoutput> getAll() {
        return zoneAnnualoutputMapper.getAll();
    }

    @Override
    public ZoneAnnualoutput getById(Integer zoneId) {
        return zoneAnnualoutputMapper.getById(zoneId);
    }

    @Override
    public boolean add(ZoneAnnualoutput zoneAnnualoutput) {
        return zoneAnnualoutputMapper.add(zoneAnnualoutput);
    }

    @Override
    public boolean update(ZoneAnnualoutput zoneAnnualoutput) {
        return zoneAnnualoutputMapper.update(zoneAnnualoutput);
    }

    @Override
    public boolean delete(Integer zoneId) {
        return zoneAnnualoutputMapper.delete(zoneId);
    }
}
